package com.whu.MenuHub.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.sql.Date;
import java.sql.Timestamp;

@Data
@EqualsAndHashCode(callSuper = false)
public class User implements Serializable {
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    private String username;

    private String password;

    //用户身份
    private String role;
    //籍贯
    @TableField("nativeplace")
    private String nativeplace;

    private String gender;
    //用户等级，比如会员
    private int level;

    //用户的头像信息
    private String avatar;

    //用户是否可以根据协同过滤来推荐,为1表示可以，当有评价信息的时候更新为1
    @TableField("predictedByFilter")
    private boolean predictedByFilter;

    private Date birthday;

    @TableField(exist = false)
    private int orderNum;
}
